<!DOCTYPE html>
<html>
<head>
    <title>Bitwise NOT Example 1</title>
    <script type="text/javascript">
          
        var num1 = 25;             //binary 00000000000000000000000000011001
        var num2 = ~num1;          //binary 11111111111111111111111111100110
        alert(num2);               //-26


    </script>

</head>
<body>
  
</body>
</html>